package com.atguigu.spzx.model.entity.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.atguigu.spzx.model.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Category extends BaseEntity{
    //ExcelProperty映射属性和excel表头关系

    private String name;


    private String imageUrl;

    private Long parentId;

    private Integer status;

    //排序
    private Integer orderNum;

    private Boolean hasChildren;
    //直接查询分类时展示所有的父子数据  声明集合类型的属性接收子数据
    //页面中懒加载  无需封装子集合

    private List<Category> children;
}
